 <?php echo hidden_field('custom_fields','id')?>
<p ><label  for="custom_fields_field_key">Field Key</label><?php echo text_field('custom_fields','field_key',array('maxlength'=>'200','size'=>50))?></p>

<p><label for="custom-fields-field-type">Field Type</label>
    <?php echo select_tag('custom_fields[field_type]',
                         options_for_select(array('text'=>'text','textarea'=>'textarea','date'=>'date'),
                                            $custom_fields->get('field_type')
                                            ),
                         array('include_blank'=>true)) ?>
    
    </p>
<p id='date_field'><label for='custom_fields_default_field_date'>Default Date Value</label>
    <?php echo datetime_select('custom_fields','default_field_date') ?>    
</p>

<p id='text_field'><label  for="custom_fields_default_field_value">Default Field Value</label><?php echo text_area('custom_fields','default_field_value',array('size'=>'50x15'))?></p>